﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

namespace ControlNode
{
    class ConnectionController
    {
        public ConnectionController()
        {
            PacketController.CC += new PacketController.PCEventHandler(QueryHandler);
        }

        public void QueryHandler(string message, Socket client)
        {
            string[] query = message.Split(' ');

            switch(query[0])
            {
                case "connection_request":

                    break;

                case "connection_teardown":

                    break;

                case "peer_coordination":

                    break;

                default:

                    break;
            }
            
        }

        public void setConnection()
        {

        }

        public void removeConnection()
        {

        }
    }
}
